package cn.springcloud.fix.stomp.vo;

public class BaseResponse extends BasePojo {

    private int code;

    private String message;

    public BaseResponse() {

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static BaseResponse ok() {
        return new BaseResponse();
    }

    public static BaseResponse fail(String message) {
        BaseResponse response = new BaseResponse();
        response.setCode(-1);
        response.setMessage(message);
        return response;
    }
}
